package com.mall.service.authority.controller;

import com.mall.commons.common.CommonPage;
import com.mall.commons.common.CommonResult;
import com.mall.model.domain.UmsMemberLevel;
import com.mall.service.authority.service.UmsMemberLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UmsMemberLevelController {

    @Autowired(required = false)
    UmsMemberLevelService umsMemberLevelService;

    //查询所有会员等级
    @GetMapping("/memberLevel/list")
    public CommonResult<List<UmsMemberLevel>> findMemberLevel(Integer defaultStatus){
        List<UmsMemberLevel> memberLevel = umsMemberLevelService.findMemberLevel(defaultStatus);
        return CommonResult.success(memberLevel);
    }
}